home *** CD-ROM | disk | FTP | other *** search
- Path: news.netinc.ca!usenet
- From: swallace@netinc.ca (Shawn Wallace)
- Newsgroups: comp.lang.c,comp.lang.c++
- Subject: Pascal 'real' to C 'float'
- Date: Wed, 24 Jan 1996 20:18:58 GMT
- Organization: Network Enterprise Technology Inc.
- Message-ID: <4e674d$ett@maestro.netinc.ca>
- NNTP-Posting-Host: maple.netinc.ca
- X-Newsreader: Forte Free Agent 1.0.82
-
- I've run into a little difficulty converting the data from an older
- Pascal program into C.
-
- I need to convert the pascal 'real' number (which I believe to be a
- 6-byte struct) to a C/C++ float or double (which are 4 and 8-bytes
- respecively).
-
- I seem to remember the Turbo Pascal help files describing the exact
- way a pascal 'real' is stored, but I no longer have that compiler.
- Could anyone shed any light on this? Please cc: any replies to my
- email (just in case).
-
- Shawn
- swallace@netinc.ca
-
-
-